<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>{$page_title}-{$Config.webname} 后台管理中心</title>
	<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge">
	<meta name="renderer" content="webkit">
	<meta name="keywords" content="{$page_title}-{$Config.webname} 后台管理中心" />
	<meta name="description" content="{$page_title}-{$Config.webname} 后台管理中心" />
	<meta name="author" content="" />
	<meta name="copyright" content="" />
	<!-- App favicon -->
	<link rel="shortcut icon" href="__ADMIN_STATIC__/images/favicon.ico">
	<!-- third party css -->
	<link href="__ADMIN_STATIC__/css/vendor/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
	<!-- third party css end -->
	<!-- App css -->
	<link href="__ADMIN_STATIC__/icons/iconfont.css" rel="stylesheet" type="text/css" />
	<link href="__ADMIN_STATIC__/css/app.min.css" rel="stylesheet" type="text/css" />
	<link href="__ADMIN_STATIC__/css/default.css" rel="stylesheet" type="text/css"/>
	<link href="__ADMIN_STATIC__/css/theme/{$Config.theme_color}.css" rel="stylesheet">
	<link href="__PLUGIN__/uploader/myUpload.css" rel="stylesheet" type="text/css" />
	<script src="__ADMIN_STATIC__/js/jquery-1.10.1.min.js" type="text/javascript"></script>
	<script src="__PLUGIN__/layer/layer.js"></script>
	<script src="__PLUGIN__/layer/extend/layer.ext.js"></script>
</head>
<body  bind-root="{$BindRoot}" bind-Controller="{$Controller}"  bind-Method="{$Method}" bind-title="{$page_title}">
	<!-- Begin page -->
	<div class="wrapper">
		<!-- ========== Left Sidebar Start ========== -->
		<div class="left-side-menu">
			<div class="slimscroll-menu" id="left-side-menu-container">
				<!-- LOGO -->
				<a href="index.html" class="logo text-center">
					<span class="logo-lg">
						<img src="__ADMIN_STATIC__/images/logo.png" alt="" height="60">
					</span>
					<span class="logo-sm">
						<img src="__ADMIN_STATIC__/images/logo_sm.png" alt="" height="60">
					</span>
				</a>
				<!--- Sidemenu -->
				<ul class="metismenu side-nav">
					<li class="side-nav-title side-nav-item">管理菜单</li>
					{php}
					foreach($menu_list as $menu_key=>$menus){

					if($menu_action==$menus['menu_url']){
						$active=' active ';
					}else{
						$active='';
					}

					if($menu_key==0){
						echo '<li class="side-nav-item '.$active.'" id="menu_'.$menu_key.'">';
					}else if($menu_key==$menu_list_count){
						echo '<li class="side-nav-item '.$active.'" id="menu_'.$menu_key.'">';
					}else{
						echo '<li class="side-nav-item '.$active.'" id="menu_'.$menu_key.'">';
					}
						
					if(count($menus['menu_list'])>=1){
						$next_icon='<span class="menu-arrow2 iconfont icon-next"></span>';
					}else{
						$next_icon='';
					}
					echo '<a href="'.url($menus['menu_url']).'" menu-type="main" class="side-nav-link">
							<i class="iconfont '.$menus['menu_icon'].'"></i>
							<span class="title">'.$menus['menu_name'].'</span>'.$next_icon.'</a>';

						if(count($menus['menu_list'])>=1){
							echo '<ul class="side-nav-second-level" aria-expanded="false">';
							foreach($menus['menu_list'] as $m){
								if($menu_action==$m['menu_url']){
									echo '<li parentid="'.$menu_key.'"><a href="'.url($m['menu_url']).'" menu-type="sub">'.$m['menu_name'].'</a></li>';
								}else{
									echo '<li parentid="'.$menu_key.'"><a href="'.url($m['menu_url']).'" menu-type="sub">'.$m['menu_name'].'</a></li>';
								}
							}
							echo '</ul>';
						}
						echo '</li>';
					}
					{/php}
				</ul>
				<!-- End Sidebar -->
				<div class="clearfix"></div>
			</div>
			<!-- Sidebar -left -->
			<!-- iconfont icon-angle-right -->
		</div>
		<!-- Left Sidebar End -->
		<div class="content-page">
			<div class="content">
				<!-- Topbar Start -->
				<div class="navbar-custom">
					<ul class="list-unstyled topbar-right-menu float-right mb-0">
						<li class="dropdown notification-list">
							<a class="nav-link dropdown-toggle nav-user arrow-none mr-0" data-toggle="dropdown" href="javascript:;"
								role="button" aria-haspopup="false" aria-expanded="false">
								<span class="account-user-avatar">
									<img src="{$AdminInfo.facepic}" alt="user-image" class="rounded-circle">
								</span>
								<span>
									<span class="account-user-name">{$AdminInfo.username}</span>
									<span class="account-position">[{$AdminInfo.nickname}]</span>
								</span>
							</a>
							<div class="dropdown-menu dropdown-menu-right dropdown-menu-animated topbar-dropdown-menu profile-dropdown">
								<!-- item-->
								<div class=" dropdown-header noti-title">
									<h6 class="text-overflow m-0">欢迎使用 FastPHP !</h6>
								</div>
								<!-- item-->
								<a href="{:url('profile/index')}" class="dropdown-item notify-item">
									<i class="iconfont icon-user-circle mr-1"></i>
									<span>设置我的账户</span>
								</a>
								<!-- item-->
								<a href="javascript:void(0);"  id="clear_all_cache_btn" class="dropdown-item notify-item">
									<i class="iconfont icon-redo mr-1"></i>
									<span>清空所有缓存数据</span>
								</a>
								<!-- item-->
								<a href="/" target="_blank" class="dropdown-item notify-item">
									<i class="iconfont icon-icon_work_fill mr-1"></i>
									<span>网站首页</span>
								</a>
								{eq name="AdminInfo.username" value="developer"}
								<a href="javascript:;" id="clear_cache_log_btn" class="dropdown-item notify-item">
									<i class="iconfont icon-compass mr-1"></i>
									<span>清理缓存/日志目录</span>
								</a>								
								<a href="javascript:;" id="create_install_db_btn" class="dropdown-item notify-item">
									<i class="iconfont icon-resource mr-1"></i>
									<span>立即生成安装包</span>
								</a>
								<a href="{:url('fileclear/index')}" class="dropdown-item notify-item">
									<i class="iconfont icon-times-circle-fill mr-1"></i>
									<span>无效文件清理</span>
								</a>
								{/eq}
								<!-- item-->
								<a href="{:url('index/LogOut')}" class="dropdown-item notify-item">
									<i class="iconfont icon-external-link mr-1"></i>
									<span>安全退出</span>
								</a>
							</div>
						</li>
					</ul>
					<button class="button-menu-mobile open-left disable-btn">
						<i class="iconfont icon-menu"></i>
					</button>
					<div class="app-search">
						<h4>
							{$Config.webname} 后台管理中心
							{eq name="AdminInfo.username" value="developer"}
							<b class="badge badge-danger">开发者模式</b>
							{/eq}
						</h4>
					</div>
				</div>
				<!-- end Topbar -->
				<!-- Start Content-->
				<div class="container-fluid">
					<div class="row">
						<div class="col-12">
							<div class="page-title-box">
								{block name="page_location"}{/block}
							</div>
						</div>
					</div>
					{block name="body"}{/block}
				</div>
				<!-- container -->
			</div>
			{block name="modal_dig"}{/block}
			<!-- content -->
			<!-- Footer Start -->
			<footer class="footer">
				<div class="container-fluid">
					<div class="row">
						<div class="col-md-6">
							{$Config.sysversion}
						</div>
						<div class="col-md-6">
							<div class="text-md-right footer-links d-none d-md-block">
								<a href="javascript: void(0);">联系我们</a>
								<a href="javascript: void(0);">技术支持</a>
							</div>
						</div>
					</div>
				</div>
			</footer>
			<!-- end Footer -->
		</div>
	</div>
	<!-- END wrapper -->
	<!-- 这里的加载顺序很重要，不然会有组件冲突导致部分功能不正常 -->
	<script src="__ADMIN_STATIC__/js/app.min.js"></script>	
	<script src="__ADMIN_STATIC__/js/jquery.form.js"></script>
	<script src="__PLUGIN__/uploader/myUpload.js" type="text/javascript"></script>
	<script src="__PLUGIN__/uploader/myUpload_combined.js" type="text/javascript"></script>
	<!-- 开始加载公共模块 -->
	<script src="__ADMIN_STATIC__/js/common.js"></script>
	<script src="__ADMIN_STATIC__/js/admin.js"></script>
	<!-- 开始加载业务处理模块 -->
	<script src="__ADMIN_STATIC__/js/admin/{$Controller}.js"></script>
	{block name="script"}{/block}
</body>
</html>